package cn.bx.bid.repository;

import cn.bx.bid.entity.User;
import cn.bx.bid.entity.WorkHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface WorkHistoryRepository extends JpaRepository<WorkHistory,Long>, JpaSpecificationExecutor<WorkHistory> {


    public List<WorkHistory> findAllByProfessorid(Long pid);

    public  int deleteByProfessoridAndId(Long pid,long hisid);
}
